/**
 * 
 */
package com.fita.webpay.entity.callback;

import com.demo2do.core.wechat.entity.pay.PayTransaction;

/**
 * @author downpour
 *
 */
public class CallbackContext implements PayTransaction {
    
    private String outTradeNo;
    
    private String transactionCode;
    
    private int amountAsInt;
    
    private String paymentTimeAsString;
    
    /**
     * 
     * @param outTradeNo
     * @param transactionCode
     * @param amount
     * @param paymentTime
     */
    public CallbackContext(String outTradeNo, String transactionCode, String amount, String paymentTime) {
        this.outTradeNo = outTradeNo;
        this.transactionCode = transactionCode;
        this.amountAsInt = Integer.valueOf(amount);
        this.paymentTimeAsString = paymentTime;
    }

    /* (non-Javadoc)
     * @see com.demo2do.core.wechat.entity.pay.PayTransaction#getAmount()
     */
    public int getAmount() {
        return this.amountAsInt;
    }

    /* (non-Javadoc)
     * @see com.demo2do.core.wechat.entity.pay.PayTransaction#getOutTradeNo()
     */
    public String getOutTradeNo() {
        return this.outTradeNo;
    }

    /* (non-Javadoc)
     * @see com.demo2do.core.wechat.entity.pay.PayTransaction#getPaymentTimeAsString()
     */
    public String getPaymentTimeAsString() {
        return this.paymentTimeAsString;
    }

    /* (non-Javadoc)
     * @see com.demo2do.core.wechat.entity.pay.PayTransaction#getTransactionCode()
     */
    public String getTransactionCode() {
        return this.transactionCode;
    }

}
